// src/services/home.ts
/**
 * 热门推荐组件-小程序
 */

import type { PageParams } from "@/types/global"
import { getAction } from "@/utils/http"
import type { HotResult } from '@/types/hot';

// 参数为联合类型，包括页面参数以及subType参数，都是非必填参数
type params = PageParams & {subType?: string}
export const getHotRecommendAPI = (url: string, data?: params )=>{
  return getAction<HotResult>({
    url,
    data,
  })
}